package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

/**
 * 玩家二级密码
 */
public class UserPassword extends DataObject {

	private long userId;

	private String recyclePassword;
	//不可放归结束时间，毫秒
	private long lockRecycleEndTime;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if (this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public String getRecyclePassword() {
		return recyclePassword;
	}

	public void setRecyclePassword(String recyclePassword) {
		if (!Objects.equals(this.recyclePassword, recyclePassword)) {
			this.recyclePassword = recyclePassword;
			setUpdateOption();
		}
	}

	public long getLockRecycleEndTime() {
		return lockRecycleEndTime;
	}

	public void setLockRecycleEndTime(long lockRecycleEndTime) {
		if (this.lockRecycleEndTime != lockRecycleEndTime) {
			this.lockRecycleEndTime = lockRecycleEndTime;
			setUpdateOption();
		}
	}
}
